package edu.ncst.baseweb.mapper;

import edu.ncst.baseweb.dao.Roles;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RolesMapper extends BaseMapper<Roles> {

    List<Roles> findByUserAccount(@Param("userAccount")String userAccount);

    //获取某个角色ID
    Integer getRoleNameId(String roleName);


}